<?php


namespace app\home\model\page\management;


use app\api\model\dao\ManbiRule;
use app\library\Error;
use app\library\PageBase;
use think\Exception;

class ManbiRulePage extends PageBase
{
    private $objManbi;

    public function __construct()
    {
        parent::__construct();
        $this->objManbi = new ManbiRule();
    }

    public function excute($param)
    {
        try {
            $ret = $this->objManbi->getAllRulesPage();
        } catch (Exception $e) {
            return $this->getRes(Error::ERR_SYS, $e->getMessage());
        }
        $this->data = $ret;
        return $this->getRes();
    }
}